How to Use ceil function and floor function in java